/* src/components/ChatAssistant.scss */

.chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chat-drawer {
  .ant-drawer-header {
    padding: 12px 24px;
    .ant-drawer-title {
      font-size: 18px;
      font-weight: 600;
    }
  }
}

.chat-loading {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-container {
  height: calc(100% - 84px);
  overflow-y: auto;
  padding: 16px;
  background: #f5f7ff;
}

.chat-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;

  &.user {
    justify-content: flex-end;

    .chat-bubble {
      background: #d9f7be;
      color: #262626;
    }
  }
  &.assistant {
    justify-content: flex-start;

    .chat-bubble {
      background: #ffffff;
      color: #595959;
    }
  }

  .chat-avatar {
    background: transparent;
    margin: 0 8px;
  }
}

.chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  word-wrap: break-word;
}

.bubble-loading {
  position: absolute;
  bottom: 4px;
  right: -24px;
}

.chat-input-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px 16px;
  display: flex;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.chat-input {
  flex: 1;
  resize: none;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 8px;
}

.send-btn {
  margin-left: 8px;
  border-radius: 8px;
}
